package com.rimi.mapper;

import com.rimi.bean.Appointment;
import com.rimi.bean.Doctor;
import com.rimi.bean.Pets;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AppointmentMapper {
    List<Pets> findPetByUserId(@Param("Uid") Integer userId);

    List<Doctor> findDoctorByDate(@Param("beginDate") String beginDate,@Param("endDate") String endDate);

    List<Doctor> findDoctorByWeek(@Param("week") String week);

    int addAppointment(Appointment appointment);

    int deleteAppointmentByUser(String appointmentId);

    int deleteAppointmentByAdministrator(String appointmentId);

    List<Appointment> findAppointmentByUserId(@Param("uid") Integer userId);

    List<Appointment> findMedicalrecordsByUserId(@Param("uid") Integer userId);

}
